#include "List/simclist_impl.h"

#ifndef HOST_MANAGEMENT_H_


struct host_mgt_struct {
   list_t*  peer_list;
   list_t*  file_list;
   list_t*  my_file_list;
   in_addr_t superpeer_ip;
   int      socket;
   int*     is_alive;
   int      is_superpeer;
};

typedef struct host_mgt_struct host_mgt_struct_t;


void joinleave_routine();
void answer_ping();
void ping_peer_routine(void* arguments);
void rcv_list_socket_routine(void* arguments);
void query_serve_peer_socket_routine(void* arguments);

#define HOST_MANAGEMENT_H_


#endif /* HOST_MANAGEMENT_H_ */
